class CreateParametros < ActiveRecord::Migration
  def self.up
    create_table :parametros do |t|
      t.string :nome, :limit => 150, :null => false
      t.text :valor, :null => false
      t.string :chave, :limit => 150, :null => false

      t.timestamps
    end
    add_index :parametros, :chave, :unique => true
  end

  def self.down
    drop_table :parametros
  end
end
